#!/bin/sh
#
# DracoPKG
#
# Copyright 2008 Ole Andre Rodlie <olear@dracolinux.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

BOOTSTRAP_PREFIX=/usr/local

BOOTSTRAP_PKGCHK="${BOOTSTRAP_PREFIX}/sbin/pkg_chk"
BOOTSTRAP_PKGADD="${BOOTSTRAP_PREFIX}/sbin/pkg_add"
BOOTSTRAP_PKGDELETE="${BOOTSTRAP_PREFIX}/sbin/pkg_delete"
BOOTSTRAP_PKGINFO="${BOOTSTRAP_PREFIX}/sbin/pkg_info"
BOOTSTRAP_BMAKE="${BOOTSTRAP_PREFIX}/bin/bmake"
BOOTSTRAP_AUDIT_DOWNLOAD="${BOOTSTRAP_PREFIX}/sbin/download-vulnerability-list"
BOOTSTRAP_AUDIT_PACKAGES="${BOOTSTRAP_PREFIX}/sbin/audit-packages"

GET="/bin/ftp"

BOOTSTRAP_PKGCHK_UPGRADE="${BOOTSTRAP_PKGCHK} -u"
BOOTSTRAP_PKGCHK_UPGRADE_TEST="${BOOTSTRAP_PKGCHK_UPGRADE} -n"
BOOTSTRAP_PKGCHK_UPGRADE_PACKAGES="${BOOTSTRAP_PKGCHK_UPGRADE} -b -P"
BOOTSTRAP_PKGCHK_UPGRADE_PACKAGES_TEST="${BOOTSTRAP_PKGCHK_UPGRADE_PACKAGES} -n"
BOOTSTRAP_PKGADD_VERBOSE="${BOOTSTRAP_PKGADD} -v"
BOOTSTRAP_PKGADD_DEFAULT=${BOOTSTRAP_PKGADD_VERBOSE}
BOOTSTRAP_PKG_ADD_UPDATE="${BOOTSTRAP_PKGADD_DEFAULT} -u"
BOOTSTRAP_PKGDELETE_CLEAN="${BOOTSTRAP_PKGDELETE} -R"
BOOTSTRAP_PKGDELETE_DEFAULT=${BOOTSTRAP_PKGDELETE_CLEAN}
BOOTSTRAP_BMAKE_INSTALL="${BOOTSTRAP_BMAKE} install"
BOOTSTRAP_BMAKE_OPTIONS="${BOOTSTRAP_BMAKE} show-options"
BOOTSTRAP_BMAKE_INSTALL_CLEAN="${BOOTSTRAP_BMAKE_INSTALL} clean"
BOOTSTRAP_BMAKE_BININSTALL="${BOOTSTRAP_BMAKE} bin-install"
BOOTSTRAP_BMAKE_DEFAULT=${BOOTSTRAP_BMAKE_INSTALL}
BOOTSTRAP_BMAKE_UPDATE="${BOOTSTRAP_BMAKE} update"
BOOTSTRAP_BMAKE_UPDATE_CLEAN="${BOOTSTRAP_BMAKE_UPDATE} clean"
BOOTSTRAP_BMAKE_UPDATE_DEFAULT=${BOOTSTRAP_BMAKE_UPDATE_CLEAN}
BOOTSTRAP_BMAKE_REPLACE="${BOOTSTRAP_BMAKE} replace"
BOOTSTRAP_BMAKE_REPLACE_CLEAN="${BOOTSTRAP_BMAKE_REPLACE} clean"
BOOTSTRAP_BMAKE_REPLACE_DEFAULT=${BOOTSTRAP_BMAKE_REPLACE_CLEAN}
